﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace NextGenSystems.WHMCS
{


    public class GetOrdersRS : WHMCSBASE
    {
        private int _TotalResults;
        private int _StartNumber;
        private int _NumReturned;
        private List<Orders> _Orders;


        [DataMember()]
        public List<Orders> Orders
        {
            get { return _Orders; }
            set
            {
                if (_Orders != value)
                {
                    _Orders = value;
                }
            }
        }

        [DataMember()]
        public virtual int TotalResults
        {
            get { return _TotalResults; }
            set
            {
                if (_TotalResults != value)
                {
                    _TotalResults = value;
                    NotifyPropertyChanged("TotalResults");
                }
            }
        }

        [DataMember()]
        public virtual int StartNumber
        {
            get { return _StartNumber; }
            set
            {
                if (_StartNumber != value)
                {
                    _StartNumber = value;
                    NotifyPropertyChanged("StartNumber");
                }
            }
        }

        [DataMember()]
        public virtual int NumReturned
        {
            get { return _NumReturned; }
            set
            {
                if (_NumReturned != value)
                {
                    _NumReturned = value;
                    NotifyPropertyChanged("NumReturned");
                }
            }
        }
    }

 public   class Orders
    {
        #region Attributs

        private Int64 _Id;
        private string _Ordernum;
        private Int64 _Userid;
        private string _Contactid;
        private DateTime _Date;
        private string _nameservers;
        private string _transfersecret;
        private string _promocode;
        private string _promotype;
        private string _promovalue;
        private Decimal _amount;
        private string _paymentmethodiveri;
        private Int64 _invoiceid;
        private Boolean _status;
        private string _ipaddress;
        private string _fraudmodule;
        private string _fraudoutput;
        private string _notes;
        private string _paymentmethodname;
        private string _paymentstatus;
        private string _nameA;

        #endregion

        #region Properties

        [DataMember()]
        public Int64 Id
        {
            get { return _Id; }
            set { _Id = value; }
        }
        [DataMember()]
        public string Ordernum
        {
            get { return _Ordernum; }
            set { _Ordernum = value; }
        }
        [DataMember()]
        public Int64 Userid
        {
            get { return _Userid; }
            set { _Userid = value; }
        }
        [DataMember()]
        public string Contactid
        {
            get { return _Contactid; }
            set { _Contactid = value; }
        }
        [DataMember()]
        public DateTime Date
        {
            get { return _Date; }
            set { _Date = value; }
        }
        [DataMember()]
        public string Nameservers
        {
            get { return _nameservers; }
            set { _nameservers = value; }
        }
        [DataMember()]
        public string Transfersecret
        {
            get { return _transfersecret; }
            set { _transfersecret = value; }
        }
        [DataMember()]
        public string Promocode
        {
            get { return _promocode; }
            set { _promocode = value; }
        }
        [DataMember()]
        public string Promotype
        {
            get { return _promotype; }
            set { _promotype = value; }
        }
        [DataMember()]
        public string Promovalue
        {
            get { return _promovalue; }
            set { _promovalue = value; }
        }
        [DataMember()]
        public Decimal Amount
        {
            get { return _amount; }
            set { _amount = value; }
        }
        [DataMember()]
        public string Paymentmethodiveri
        {
            get { return _paymentmethodiveri; }
            set { _paymentmethodiveri = value; }
        }
        [DataMember()]
        public Int64 Invoiceid
        {
            get { return _invoiceid; }
            set { _invoiceid = value; }
        }
        [DataMember()]
        public Boolean Status
        {
            get { return _status; }
            set { _status = value; }
        }
        [DataMember()]
        public string Ipaddress
        {
            get { return _ipaddress; }
            set { _ipaddress = value; }
        }
        [DataMember()]
        public string Fraudmodule
        {
            get { return _fraudmodule; }
            set { _fraudmodule = value; }
        }
        [DataMember()]
        public string Fraudoutput
        {
            get { return _fraudoutput; }
            set { _fraudoutput = value; }
        }
        [DataMember()]
        public string Notes
        {
            get { return _notes; }
            set { _notes = value; }
        }
        [DataMember()]
        public string Paymentmethodname
        {
            get { return _paymentmethodname; }
            set { _paymentmethodname = value; }
        }
        [DataMember()]
        public string Paymentstatus
        {
            get { return _paymentstatus; }
            set { _paymentstatus = value; }
        }
        [DataMember()]
        public string NameA
        {
            get { return _nameA; }
            set { _nameA = value; }
        }

        #endregion
    }
}
